<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="box" style="color: red; font-size: 50px">box1</div>
	</body>
</html>
<script>
	
	let oBox = document.getElementById("box");
	
	console.log(oBox.style.color);
	
	//赋值
	oBox.style.color = 'pink';
	oBox.style.fontSize = '30px';
	oBox.style.border = '5px solid pink';
	
	oBox.style.width = '200px';
	 
	 //所有的操作全在行间
		
</script>
